package com.http.serviceimple;

import com.http.dao.DeptsMapp;
import com.http.pojo.Depts;
import com.http.pojo.Mybooks;
import com.http.service.DeptsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("DeptsService")
public class DeptServiceImple implements DeptsService {
    //实现dao接口
    @Resource
    private DeptsMapp deptsMapp;
    @Override
    public List<Depts> getSelect() {
        return this.deptsMapp.findDept()
                ;
    }

    @Override
    public List<Mybooks> findBook() {
        return this.deptsMapp.findAll();
    }
}
